<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>登录</title>
</head>
<body>
<h1>登录</h1>
<div th:if="${param.error}">
    用户名或者密码错误！
</div>
<form th:action="@{/login}" method="post">
    <div>
        <input type="text" name="userName" placeholder="用户名">
    </div>
    <div>
        <input type="text" name="password" placeholder="密码">
    </div>
    <input type="submit" value="登录"/>
</form>
</body>
</html>
